#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include"Heap.h"
void Test1() {
	Heap hp;
	HeapInit(&hp);
	int a[] = { 65,100,70,32,50,60 };
	int b[] = { 65,100,70,32,50,60,650,100,700,32,50,600 };
	for (size_t i = 0; i < sizeof(b)/sizeof(b[0]); i++)
	{
		HeapPush(&hp, b[i]);
	}
	HeapPrint(&hp);
	HeapDestory(&hp);
}
int main()
{
	//int a[] = { 65,100,70,32,50,60 };
	int a[] = { 2,3,5,7,4,6,8,65,100,70,32,50,60 };
	Heap hp;
	HeapInit(&hp);
	for (int i = 0; i < sizeof(a)/sizeof(int); i++)
	{
		HeapPush(&hp, a[i]);
	}
	HeapPrint(&hp);

	int k = 5;
	while (!HeapEmpty(&hp) && k--)
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}

	HeapDestroy(&hp);

	return 0;
}